package com.lcp.se;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

@EnableRabbit
@SpringBootApplication
//@EnableDiscoveryClient
public class SeImApplication {

    public static void main(String[] args) {
        SpringApplication.run(SeImApplication.class, args);
    }

    /**
     * 开启WebSocket支持
     */
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
